Fast computation of abelian runs

نویسندگان

  • Gabriele Fici
  • Tomasz Kociumaka
  • Thierry Lecroq
  • Arnaud Lefebvre
  • Élise Prieur
چکیده

Given a word w and a Parikh vector P , an abelian run of period P in w is a maximal occurrence of a substring of w having abelian period P . Our main result is an online algorithm that, given a word w of length n over an alphabet of cardinality σ and a Parikh vector P , returns all the abelian runs of period P in w in time O(n) and space O(σ + p), where p is the norm of P , i.e., the sum of its components. We also present an online algorithm that computes all the abelian runs with periods of norm p in w in time O(np), for any given norm p. Finally, we give an O(n)-time offline randomized algorithm for computing all the abelian runs of w. Its deterministic counterpart runs in O(n log σ) time.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Online Computation of Abelian Runs

Given a word w and a Parikh vector P, an abelian run of period P in w is a maximal occurrence of a substring of w having abelian period P. We give an algorithm that finds all the abelian runs of period P in a word of length n in time O(n× |P|) and space O(σ + |P|).

متن کامل

Computing Abelian Covers and Abelian Runs

Two strings u and v are said to be Abelian equivalent if u is a permutation of the characters of v. We introduce two new regularities on strings w.r.t. Abelian equivalence, called Abelian covers and Abelian runs, which are generalizations of covers and runs of strings, respectively. We show how to determine in O(n) time whether or not a given string w of length n has an Abelian cover. Also, we ...

متن کامل

Fast Fourier Analysis for Abelian Group Extensions

Let G be a nite group and f any complex-valued function deened on G and an irreducible complex matrix representation of G. The Fourier transform of f at is deened to be the matrix P s2G f(s)(s). The Fourier transforms of f at all the irreducible representations of G determine f via the Fourier inversion formula f(s) = 1 j Gj P d trace(b f()(s ?1)): Direct computation of all Fourier transforms o...

متن کامل

Can we solve asynchronous byzantine consensus without cryptography?

Lamport [1] presented lower bound results on the number of acceptors required as a function of the number of processes that can fail so that fast asynchronous consensus can be achieved in the byzantine setting for favourable runs. The lower bounds presented assume that processes can use public-key cryptography during the computation. We explore how the lower bound results change if the public-k...

متن کامل

Flexible and Efficient Algorithms for Abelian Matching in Strings

The abelian pattern matching problem consists in finding all substrings of a text which are permutations of a given pattern. This problem finds application in many areas and can be solved in linear time by a näıve sliding window approach. In this short communication we present a new class of algorithms based on a new efficient fingerprint computation approach, called Heap-Counting, which turns ...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:
  • Theor. Comput. Sci.

دوره 656  شماره 

صفحات  -

تاریخ انتشار 2016